package com.hu.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hu.common.annotation.Excel;
import com.hu.common.core.domain.BaseEntity;

/**
 * 回款明细对象 profit_return
 *
 * @author hu
 * @date 2025-01-21
 */
public class ProfitReturn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 回款明细ID
     */
    private Long returnId;

    /**
     * SKU编码
     */
    @Excel(name = "SKU ID")
    private String sku;

    /**
     * 产品名称
     */
    @Excel(name = "货品名称")
    private String productName;

    /**
     * SKU属性
     */
    @Excel(name = "SKU属性")
    private String skuAttr;

    /**
     * SKU货号（非数据库字段，从product_info关联查询）
     */
    @Excel(name = "SKU货号")
    private String skuCode;

    /**
     * 备货单号
     */
    @Excel(name = "备货单号")
    private String stockOrderNo;

    /**
     * 销售数量
     */
    @Excel(name = "数量")
    private Integer salesQuantity;

    /**
     * 收入金额
     */
    @Excel(name = "金额")
    private BigDecimal incomeAmount;

    /**
     * 到账时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "账务时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date arrivalDate;

    /**
     * 所属店铺ID
     */
    @Excel(name = "所属店铺ID")
    private Long shopId;

    /**
     * 所属店铺名称
     */
    @Excel(name = "所属店铺名称")
    private String shopName;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setReturnId(Long returnId) {
        this.returnId = returnId;
    }

    public Long getReturnId() {
        return returnId;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getSku() {
        return sku;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setSkuAttr(String skuAttr) {
        this.skuAttr = skuAttr;
    }

    public String getSkuAttr() {
        return skuAttr;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public void setStockOrderNo(String stockOrderNo) {
        this.stockOrderNo = stockOrderNo;
    }

    public String getStockOrderNo() {
        return stockOrderNo;
    }

    public void setSalesQuantity(Integer salesQuantity) {
        this.salesQuantity = salesQuantity;
    }

    public Integer getSalesQuantity() {
        return salesQuantity;
    }

    public void setIncomeAmount(BigDecimal incomeAmount) {
        this.incomeAmount = incomeAmount;
    }

    public BigDecimal getIncomeAmount() {
        return incomeAmount;
    }

    public void setArrivalDate(Date arrivalDate) {
        this.arrivalDate = arrivalDate;
    }

    public Date getArrivalDate() {
        return arrivalDate;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("returnId", getReturnId())
                .append("sku", getSku())
            .append("productName", getProductName())
            .append("skuAttr", getSkuAttr())
            .append("skuCode", getSkuCode())
            .append("stockOrderNo", getStockOrderNo())
            .append("salesQuantity", getSalesQuantity())
            .append("incomeAmount", getIncomeAmount())
            .append("arrivalDate", getArrivalDate())
            .append("shopId", getShopId())
                .append("shopName", getShopName())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}

